package com.gla.service;

import com.gla.dao.LoginMapper;
import com.gla.domain.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LoginService {
    @Resource
    LoginMapper loginMapper;

    public User select(String username, String password){
        return loginMapper.select(username,password);
    }

    public void register(User user) {
        loginMapper.register(user);
    }

    public List<User> check(String username) {
        return loginMapper.check(username);
    }

}
